package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 客户表 sys_customer
 * 
 * @author ruoyi
 */
public class SysCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String customerPhone;

    /** 来源渠道 */
    @Excel(name = "来源渠道")
    private String sourceValue;

    /** 意向校区 */
    @Excel(name = "意向校区")
    private String schoolValue;

    public Long getCustomerId()
    {
        return customerId;
    }

    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    @NotBlank(message = "客户名称不能为空")
    @Size(min = 0, max = 64, message = "客户名称长度不能超过64个字符")
    public String getCustomerName()
    {
        return customerName;
    }

    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    @NotBlank(message = "联系方式不能为空")
    @Size(min = 0, max = 50, message = "联系方式长度不能超过50个字符")
    public String getCustomerPhone()
    {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone)
    {
        this.customerPhone = customerPhone;
    }

    public String getSchoolValue()
    {
        return schoolValue;
    }

    public void setSchoolValue(String schoolValue)
    {
        this.schoolValue = schoolValue;
    }

    public String getSourceValue()
    {
        return sourceValue;
    }

    public void setSourceValue(String sourceValue)
    {
        this.sourceValue = sourceValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postCustomerId", getCustomerId())
            .append("postCustomerName", getCustomerName())
            .append("customerPhone", getCustomerPhone())
            .append("sourceValue", getSourceValue())
            .append("schoolValue", getSchoolValue())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
